/// pageNum : 1
/// pageSize : 10

class PageQuery {
  PageQuery(
    this.pageNum,
    this.pageSize,
  );

  PageQuery.fromJson(dynamic json) {
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
  }

  int pageNum = 1;
  int pageSize = 10;

  PageQuery copyWith(
    int pageNum,
    int pageSize,
  ) =>
      PageQuery(pageNum, pageSize);

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    return map;
  }
}
